home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / MCLUTILS.CPT / oodles-of-utils / mixin-madness / simple-view-mixins / graphic-rsrc-svm.lisp < prev    next >
MacBinary  |  1991-10-24  |  5.3 KB  |  [TEXT/CCL2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Thu Oct 24 09:20:59 1991, modified Thu Oct 24 09:20:59 1991, creator Common Lisp 2, type ASCII, 4616 bytes "graphic-rsrc-svm.lisp" , at 0x1288 416 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CCL2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 67 72 61 70 68 69 | 63 2d 72 73 72 63 2d 73 |..graphi|c-rsrc-s|
|00000010| 76 6d 2e 6c 69 73 70 00 | 00 00 00 00 00 00 00 00 |vm.lisp.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 43 4c | 32 00 00 00 00 00 00 00 |.TEXTCCL|2.......|
|00000050| 00 00 00 00 00 12 08 00 | 00 01 a0 a5 2c 79 3b a5 |........|....,y;.|
|00000060| 2c 79 3b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |,y;.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 05 25 00 00 |........|.....%..|
|00000080| 28 69 6e 2d 70 61 63 6b | 61 67 65 20 3a 6f 6f 75 |(in-pack|age :oou|
|00000090| 29 0d 28 70 72 6f 76 69 | 64 65 20 3a 67 72 61 70 |).(provi|de :grap|
|000000a0| 68 69 63 2d 72 73 72 63 | 2d 73 76 6d 29 0d 3b 3b |hic-rsrc|-svm).;;|
|000000b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000f0| 3b 3b 3b 3b 0d 3b 3b 20 | 67 72 61 70 68 69 63 2d |;;;;.;; |graphic-|
|00000100| 72 73 72 63 2d 73 76 6d | 2e 6c 69 73 70 0d 3b 3b |rsrc-svm|.lisp.;;|
|00000110| 0d 3b 3b 20 43 6f 70 79 | 72 69 67 68 74 20 a9 20 |.;; Copy|right . |
|00000120| 31 39 39 31 20 4e 6f 72 | 74 68 77 65 73 74 65 72 |1991 Nor|thwester|
|00000130| 6e 20 55 6e 69 76 65 72 | 73 69 74 79 20 49 6e 73 |n Univer|sity Ins|
|00000140| 74 69 74 75 74 65 20 66 | 6f 72 20 74 68 65 20 4c |titute f|or the L|
|00000150| 65 61 72 6e 69 6e 67 20 | 53 63 69 65 6e 63 65 73 |earning |Sciences|
|00000160| 0d 3b 3b 20 41 6c 6c 20 | 52 69 67 68 74 73 20 52 |.;; All |Rights R|
|00000170| 65 73 65 72 76 65 64 0d | 3b 3b 0d 3b 3b 20 61 75 |eserved.|;;.;; au|
|00000180| 74 68 6f 72 3a 20 4d 69 | 63 68 61 65 6c 20 53 2e |thor: Mi|chael S.|
|00000190| 20 45 6e 67 62 65 72 0d | 3b 3b 0d 3b 3b 20 6d 69 | Engber.|;;.;; mi|
|000001a0| 78 69 6e 20 66 6f 72 20 | 64 69 73 70 6c 61 79 69 |xin for |displayi|
|000001b0| 6e 67 20 67 72 61 70 68 | 69 63 61 6c 20 72 65 73 |ng graph|ical res|
|000001c0| 6f 75 72 63 65 73 20 69 | 6e 20 76 69 65 77 73 0d |ources i|n views.|
|000001d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000200| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000210| 3b 3b 3b 3b 3b 3b 0d 0d | 28 6f 6f 75 2d 64 65 70 |;;;;;;..|(oou-dep|
|00000220| 65 6e 64 65 6e 63 69 65 | 73 0d 20 3a 72 73 72 63 |endencie|s. :rsrc|
|00000230| 2d 73 76 6d 0d 20 3a 73 | 69 6d 70 6c 65 2d 76 69 |-svm. :s|imple-vi|
|00000240| 65 77 2d 63 65 29 0d 0d | 0d 28 65 78 70 6f 72 74 |ew-ce)..|.(export|
|00000250| 20 27 28 67 72 61 70 68 | 69 63 2d 72 73 72 63 2d | '(graph|ic-rsrc-|
|00000260| 73 76 6d 29 29 0d 0d 3b | 3b 3b 3b 3b 3b 3b 3b 3b |svm))..;|;;;;;;;;|
|00000270| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000280| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000290| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 0d 23 7c |;;;;;;;;|;;;;;.#||
|000002b0| 0d 0d 67 72 61 70 68 69 | 63 2d 72 73 72 63 2d 73 |..graphi|c-rsrc-s|
|000002c0| 76 6d 20 61 64 64 73 20 | 72 65 73 6f 75 72 63 65 |vm adds |resource|
|000002d0| 20 62 61 73 65 64 20 67 | 72 61 70 68 69 63 73 20 | based g|raphics |
|000002e0| 74 6f 20 76 69 65 77 73 | 2e 0d 0d 53 65 65 20 41 |to views|...See A|
|000002f0| 6c 73 6f 0d 20 72 73 72 | 63 2d 73 76 6d 20 2d 20 |lso. rsr|c-svm - |
|00000300| 69 6e 68 65 72 69 74 65 | 64 20 62 65 68 61 76 69 |inherite|d behavi|
|00000310| 6f 72 0d 0d 0d 49 6e 69 | 74 61 72 67 73 0d 0d 20 |or...Ini|targs.. |
|00000320| 3a 67 72 61 70 68 69 63 | 2d 73 63 61 6c 69 6e 67 |:graphic|-scaling|
|00000330| 20 5b 3a 61 64 6a 75 73 | 74 2d 76 69 65 77 2d 73 | [:adjus|t-view-s|
|00000340| 69 7a 65 5d 0d 20 20 20 | 44 65 74 65 72 6d 69 6e |ize]. |Determin|
|00000350| 65 73 20 69 66 20 74 68 | 65 20 67 72 61 70 68 69 |es if th|e graphi|
|00000360| 63 20 69 73 20 73 63 61 | 6c 65 64 20 74 6f 20 74 |c is sca|led to t|
|00000370| 68 65 20 76 69 65 77 20 | 73 69 7a 65 20 6f 72 20 |he view |size or |
|00000380| 76 69 63 65 2d 76 65 72 | 73 61 2e 0d 20 20 20 41 |vice-ver|sa.. A|
|00000390| 6c 6c 6f 77 65 64 20 6b | 65 79 77 6f 72 64 73 20 |llowed k|eywords |
|000003a0| 61 72 65 20 3a 61 64 6a | 75 73 74 2d 76 69 65 77 |are :adj|ust-view|
|000003b0| 2d 73 69 7a 65 2c 20 3a | 73 63 61 6c 65 2d 74 6f |-size, :|scale-to|
|000003c0| 2d 76 69 65 77 2c 20 3a | 63 6c 69 70 2d 74 6f 2d |-view, :|clip-to-|
|000003d0| 76 69 65 77 2e 0d 20 20 | 20 20 3a 61 64 6a 75 73 |view.. | :adjus|
|000003e0| 74 2d 76 69 65 77 2d 73 | 69 7a 65 20 2d 20 74 68 |t-view-s|ize - th|
|000003f0| 65 20 76 69 65 77 20 73 | 69 7a 65 20 69 73 20 61 |e view s|ize is a|
|00000400| 64 6a 75 73 74 65 64 20 | 74 6f 20 66 69 74 20 74 |djusted |to fit t|
|00000410| 68 65 20 67 72 61 70 68 | 69 63 0d 20 20 20 20 3a |he graph|ic. :|
|00000420| 73 63 61 6c 65 2d 74 6f | 2d 76 69 65 77 20 20 20 |scale-to|-view |
|00000430| 20 2d 20 74 68 65 20 67 | 72 61 70 68 69 63 20 69 | - the g|raphic i|
|00000440| 73 20 73 63 61 6c 65 64 | 20 74 6f 20 74 68 65 20 |s scaled| to the |
|00000450| 76 69 65 77 20 73 69 7a | 65 2e 0d 20 20 20 20 3a |view siz|e.. :|
|00000460| 63 6c 69 70 2d 74 6f 2d | 76 69 65 77 20 20 20 20 |clip-to-|view |
|00000470| 20 2d 20 74 68 65 20 67 | 72 61 70 68 69 63 20 69 | - the g|raphic i|
|00000480| 73 20 64 72 61 77 6e 20 | 63 6c 69 70 70 65 64 20 |s drawn |clipped |
|00000490| 74 6f 20 74 68 65 20 76 | 69 65 77 0d 0d 0d 4d 65 |to the v|iew...Me|
|000004a0| 74 68 6f 64 73 20 6f 66 | 20 49 6e 74 65 72 65 73 |thods of| Interes|
|000004b0| 74 0d 0d 20 67 72 61 70 | 68 69 63 2d 73 69 7a 65 |t.. grap|hic-size|
|000004c0| 20 28 73 76 20 67 72 61 | 70 68 69 63 2d 72 73 72 | (sv gra|phic-rsr|
|000004d0| 63 2d 73 76 6d 29 20 72 | 73 72 63 2d 68 61 6e 64 |c-svm) r|src-hand|
|000004e0| 6c 65 0d 20 20 52 65 74 | 75 72 6e 73 20 74 68 65 |le. Ret|urns the|
|000004f0| 20 73 69 7a 65 20 6f 66 | 20 74 68 65 20 73 70 65 | size of| the spe|
|00000500| 63 69 66 69 65 64 20 67 | 72 61 70 68 69 63 20 61 |cified g|raphic a|
|00000510| 73 20 61 20 70 6f 69 6e | 74 2e 0d 20 20 65 2e 67 |s a poin|t.. e.g|
|00000520| 2e 20 50 49 43 54 2d 73 | 76 6d 27 73 20 72 65 74 |. PICT-s|vm's ret|
|00000530| 75 72 6e 3a 0d 20 20 28 | 73 75 62 74 72 61 63 74 |urn:. (|subtract|
|00000540| 2d 70 6f 69 6e 74 73 0d | 20 20 20 28 68 72 65 66 |-points.| (href|
|00000550| 20 72 73 72 63 2d 68 61 | 6e 64 6c 65 20 3a 50 69 | rsrc-ha|ndle :Pi|
|00000560| 63 74 75 72 65 2e 70 69 | 63 46 72 61 6d 65 2e 62 |cture.pi|cFrame.b|
|00000570| 6f 74 52 69 67 68 74 29 | 0d 20 20 20 28 68 72 65 |otRight)|. (hre|
|00000580| 66 20 72 73 72 63 2d 68 | 61 6e 64 6c 65 20 3a 50 |f rsrc-h|andle :P|
|00000590| 69 63 74 75 72 65 2e 70 | 69 63 46 72 61 6d 65 2e |icture.p|icFrame.|
|000005a0| 74 6f 70 4c 65 66 74 20 | 29 29 0d 0d 20 64 72 61 |topLeft |)).. dra|
|000005b0| 77 2d 67 72 61 70 68 69 | 63 20 28 73 76 20 67 72 |w-graphi|c (sv gr|
|000005c0| 61 70 68 69 63 2d 72 73 | 72 63 2d 73 76 6d 29 20 |aphic-rs|rc-svm) |
|000005d0| 72 73 72 63 2d 68 61 6e | 64 6c 65 20 72 65 63 74 |rsrc-han|dle rect|
|000005e0| 0d 20 20 20 44 72 61 77 | 73 20 74 68 65 20 67 72 |. Draw|s the gr|
|000005f0| 61 70 68 69 63 20 73 63 | 61 6c 65 64 20 74 6f 20 |aphic sc|aled to |
|00000600| 72 65 63 74 2e 0d 0d 20 | 67 72 61 70 68 69 63 2d |rect... |graphic-|
|00000610| 6d 61 72 67 69 6e 73 20 | 28 73 76 20 67 72 61 70 |margins |(sv grap|
|00000620| 68 69 63 2d 72 73 72 63 | 2d 73 76 6d 29 0d 20 20 |hic-rsrc|-svm). |
|00000630| 52 65 74 75 72 6e 73 20 | 6d 61 72 67 69 6e 73 20 |Returns |margins |
|00000640| 66 6f 72 20 69 6e 64 65 | 6e 74 69 6e 67 20 74 68 |for inde|nting th|
|00000650| 65 20 67 72 61 70 68 69 | 63 20 61 73 20 74 77 6f |e graphi|c as two|
|00000660| 20 70 6f 69 6e 74 73 20 | 28 74 6f 70 4c 65 66 74 | points |(topLeft|
|00000670| 2c 20 62 6f 74 52 69 67 | 68 74 29 2e 0d 20 20 54 |, botRig|ht).. T|
|00000680| 68 65 20 64 65 66 61 75 | 6c 74 20 6d 65 74 68 6f |he defau|lt metho|
|00000690| 64 20 72 65 74 75 72 6e | 73 20 7a 65 72 6f 20 6d |d return|s zero m|
|000006a0| 61 72 67 69 6e 73 2e 20 | 53 70 65 63 69 61 6c 69 |argins. |Speciali|
|000006b0| 7a 65 20 74 68 69 73 20 | 6d 65 74 68 6f 64 20 74 |ze this |method t|
|000006c0| 6f 20 63 6f 6e 74 72 6f | 6c 0d 20 20 70 6c 61 63 |o contro|l. plac|
|000006d0| 65 6d 65 6e 74 2e 0d 0d | 7c 23 0d 3b 3b 3b 3b 3b |ement...||#.;;;;;|
|000006e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000006f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000700| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000710| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000720| 3b 0d 0d 28 64 65 66 63 | 6c 61 73 73 20 67 72 61 |;..(defc|lass gra|
|00000730| 70 68 69 63 2d 72 73 72 | 63 2d 73 76 6d 20 28 72 |phic-rsr|c-svm (r|
|00000740| 73 72 63 2d 73 76 6d 29 | 0d 20 20 28 28 67 72 61 |src-svm)|. ((gra|
|00000750| 70 68 69 63 2d 73 63 61 | 6c 69 6e 67 20 20 20 20 |phic-sca|ling |
|00000760| 20 20 3a 69 6e 69 74 61 | 72 67 20 3a 67 72 61 70 | :inita|rg :grap|
|00000770| 68 69 63 2d 73 63 61 6c | 69 6e 67 29 0d 20 20 20 |hic-scal|ing). |
|00000780| 28 67 72 61 70 68 69 63 | 2d 64 65 66 61 75 6c 74 |(graphic|-default|
|00000790| 2d 73 69 7a 65 20 3a 69 | 6e 69 74 61 72 67 20 3a |-size :i|nitarg :|
|000007a0| 67 72 61 70 68 69 63 2d | 64 65 66 61 75 6c 74 2d |graphic-|default-|
|000007b0| 73 69 7a 65 29 29 0d 20 | 20 28 3a 64 65 66 61 75 |size)). | (:defau|
|000007c0| 6c 74 2d 69 6e 69 74 61 | 72 67 73 0d 20 20 20 20 |lt-inita|rgs. |
|000007d0| 3a 67 72 61 70 68 69 63 | 2d 73 63 61 6c 69 6e 67 |:graphic|-scaling|
|000007e0| 20 3a 61 64 6a 75 73 74 | 2d 76 69 65 77 2d 73 69 | :adjust|-view-si|
|000007f0| 7a 65 0d 20 20 20 20 3a | 67 72 61 70 68 69 63 2d |ze. :|graphic-|
|00000800| 64 65 66 61 75 6c 74 2d | 73 69 7a 65 20 23 40 28 |default-|size #@(|
|00000810| 33 32 20 33 32 29 0d 20 | 20 20 20 29 29 0d 0d 28 |32 32). | ))..(|
|00000820| 64 65 66 6d 65 74 68 6f | 64 20 67 72 61 70 68 69 |defmetho|d graphi|
|00000830| 63 2d 73 69 7a 65 20 28 | 28 73 76 20 67 72 61 70 |c-size (|(sv grap|
|00000840| 68 69 63 2d 72 73 72 63 | 2d 73 76 6d 29 20 72 73 |hic-rsrc|-svm) rs|
|00000850| 72 63 2d 68 61 6e 64 6c | 65 29 0d 20 20 28 64 65 |rc-handl|e). (de|
|00000860| 63 6c 61 72 65 20 28 69 | 67 6e 6f 72 65 20 72 73 |clare (i|gnore rs|
|00000870| 72 63 2d 68 61 6e 64 6c | 65 29 29 0d 20 20 28 73 |rc-handl|e)). (s|
|00000880| 6c 6f 74 2d 76 61 6c 75 | 65 20 73 76 20 27 67 72 |lot-valu|e sv 'gr|
|00000890| 61 70 68 69 63 2d 64 65 | 66 61 75 6c 74 2d 73 69 |aphic-de|fault-si|
|000008a0| 7a 65 29 29 0d 0d 28 64 | 65 66 6d 65 74 68 6f 64 |ze))..(d|efmethod|
|000008b0| 20 64 72 61 77 2d 67 72 | 61 70 68 69 63 20 28 28 | draw-gr|aphic ((|
|000008c0| 73 76 20 67 72 61 70 68 | 69 63 2d 72 73 72 63 2d |sv graph|ic-rsrc-|
|000008d0| 73 76 6d 29 20 72 73 72 | 63 2d 68 61 6e 64 6c 65 |svm) rsr|c-handle|
|000008e0| 20 72 65 63 74 29 0d 20 | 20 28 64 65 63 6c 61 72 | rect). | (declar|
|000008f0| 65 20 28 69 67 6e 6f 72 | 65 20 73 76 20 72 73 72 |e (ignor|e sv rsr|
|00000900| 63 2d 68 61 6e 64 6c 65 | 20 72 65 63 74 29 29 29 |c-handle| rect)))|
|00000910| 0d 0d 28 64 65 66 6d 65 | 74 68 6f 64 20 76 69 65 |..(defme|thod vie|
|00000920| 77 2d 64 72 61 77 2d 63 | 6f 6e 74 65 6e 74 73 20 |w-draw-c|ontents |
|00000930| 28 28 73 76 20 67 72 61 | 70 68 69 63 2d 72 73 72 |((sv gra|phic-rsr|
|00000940| 63 2d 73 76 6d 29 29 0d | 20 20 28 77 69 74 68 2d |c-svm)).| (with-|
|00000950| 73 6c 6f 74 73 20 28 72 | 73 72 63 2d 68 61 6e 64 |slots (r|src-hand|
|00000960| 6c 65 29 20 73 76 0d 20 | 20 20 20 28 6d 75 6c 74 |le) sv. | (mult|
|00000970| 69 70 6c 65 2d 76 61 6c | 75 65 2d 62 69 6e 64 20 |iple-val|ue-bind |
|00000980| 28 74 6f 70 4c 65 66 74 | 20 62 6f 74 52 69 67 68 |(topLeft| botRigh|
|00000990| 74 29 20 28 67 72 61 70 | 68 69 63 2d 63 6f 72 6e |t) (grap|hic-corn|
|000009a0| 65 72 73 20 73 76 29 0d | 20 20 20 20 20 20 28 65 |ers sv).| (e|
|000009b0| 63 61 73 65 20 28 73 6c | 6f 74 2d 76 61 6c 75 65 |case (sl|ot-value|
|000009c0| 20 73 76 20 27 67 72 61 | 70 68 69 63 2d 73 63 61 | sv 'gra|phic-sca|
|000009d0| 6c 69 6e 67 29 0d 20 20 | 20 20 20 20 20 20 28 3a |ling). | (:|
|000009e0| 73 63 61 6c 65 2d 74 6f | 2d 76 69 65 77 20 28 72 |scale-to|-view (r|
|000009f0| 6c 65 74 20 28 28 72 20 | 3a 52 65 63 74 20 3a 74 |let ((r |:Rect :t|
|00000a00| 6f 70 4c 65 66 74 20 74 | 6f 70 4c 65 66 74 20 3a |opLeft t|opLeft :|
|00000a10| 62 6f 74 52 69 67 68 74 | 20 62 6f 74 52 69 67 68 |botRight| botRigh|
|00000a20| 74 29 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |t)). | |
|00000a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 28 64 | | (d|
|00000a40| 72 61 77 2d 67 72 61 70 | 68 69 63 20 73 76 20 72 |raw-grap|hic sv r|
|00000a50| 73 72 63 2d 68 61 6e 64 | 6c 65 20 72 29 29 29 0d |src-hand|le r))).|
|00000a60| 20 20 20 20 20 20 20 20 | 28 3a 61 64 6a 75 73 74 | |(:adjust|
|00000a70| 2d 76 69 65 77 2d 73 69 | 7a 65 20 28 72 6c 65 74 |-view-si|ze (rlet|
|00000a80| 20 28 28 72 20 3a 52 65 | 63 74 0d 20 20 20 20 20 | ((r :Re|ct. |
|00000a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ab0| 3a 74 6f 70 4c 65 66 74 | 20 74 6f 70 4c 65 66 74 |:topLeft| topLeft|
|00000ac0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ae0| 20 20 20 20 20 20 3a 62 | 6f 74 52 69 67 68 74 20 | :b|otRight |
|00000af0| 28 61 64 64 2d 70 6f 69 | 6e 74 73 20 74 6f 70 4c |(add-poi|nts topL|
|00000b00| 65 66 74 20 28 67 72 61 | 70 68 69 63 2d 73 69 7a |eft (gra|phic-siz|
|00000b10| 65 20 73 76 20 72 73 72 | 63 2d 68 61 6e 64 6c 65 |e sv rsr|c-handle|
|00000b20| 29 29 29 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 |)))). | |
|00000b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b40| 20 20 28 64 72 61 77 2d | 67 72 61 70 68 69 63 20 | (draw-|graphic |
|00000b50| 73 76 20 72 73 72 63 2d | 68 61 6e 64 6c 65 20 72 |sv rsrc-|handle r|
|00000b60| 29 29 29 0d 20 20 20 20 | 20 20 20 20 28 3a 63 6c |))). | (:cl|
|00000b70| 69 70 2d 74 6f 2d 76 69 | 65 77 20 28 72 6c 65 74 |ip-to-vi|ew (rlet|
|00000b80| 20 28 28 63 6c 69 70 2d | 72 65 63 74 20 3a 52 65 | ((clip-|rect :Re|
|00000b90| 63 74 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ct. | |
|00000ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a 74 6f 70 | | :top|
|00000bc0| 4c 65 66 74 20 74 6f 70 | 4c 65 66 74 0d 20 20 20 |Left top|Left. |
|00000bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bf0| 20 20 20 20 20 20 3a 62 | 6f 74 52 69 67 68 74 20 | :b|otRight |
|00000c00| 62 6f 74 52 69 67 68 74 | 29 0d 20 20 20 20 20 20 |botRight|). |
|00000c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c20| 20 20 20 20 20 20 20 20 | 28 72 20 3a 52 65 63 74 | |(r :Rect|
|00000c30| 20 3a 74 6f 70 4c 65 66 | 74 20 74 6f 70 4c 65 66 | :topLef|t topLef|
|00000c40| 74 20 3a 62 6f 74 52 69 | 67 68 74 20 28 61 64 64 |t :botRi|ght (add|
|00000c50| 2d 70 6f 69 6e 74 73 20 | 74 6f 70 4c 65 66 74 20 |-points |topLeft |
|00000c60| 28 67 72 61 70 68 69 63 | 2d 73 69 7a 65 20 73 76 |(graphic|-size sv|
|00000c70| 20 72 73 72 63 2d 68 61 | 6e 64 6c 65 29 29 29 29 | rsrc-ha|ndle))))|
|00000c80| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000c90| 20 20 20 20 20 20 20 20 | 20 20 28 77 69 74 68 2d | | (with-|
|00000ca0| 63 6c 69 70 2d 72 65 63 | 74 20 63 6c 69 70 2d 72 |clip-rec|t clip-r|
|00000cb0| 65 63 74 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ect. | |
|00000cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 28 | | (|
|00000cd0| 64 72 61 77 2d 67 72 61 | 70 68 69 63 20 73 76 20 |draw-gra|phic sv |
|00000ce0| 72 73 72 63 2d 68 61 6e | 64 6c 65 20 72 29 29 29 |rsrc-han|dle r)))|
|00000cf0| 29 29 29 29 0d 20 20 28 | 63 61 6c 6c 2d 6e 65 78 |)))). (|call-nex|
|00000d00| 74 2d 6d 65 74 68 6f 64 | 29 29 0d 0d 28 64 65 66 |t-method|))..(def|
|00000d10| 6d 65 74 68 6f 64 20 67 | 72 61 70 68 69 63 2d 6d |method g|raphic-m|
|00000d20| 61 72 67 69 6e 73 20 28 | 28 73 76 20 67 72 61 70 |argins (|(sv grap|
|00000d30| 68 69 63 2d 72 73 72 63 | 2d 73 76 6d 29 29 0d 20 |hic-rsrc|-svm)). |
|00000d40| 20 28 64 65 63 6c 61 72 | 65 20 28 69 67 6e 6f 72 | (declar|e (ignor|
|00000d50| 65 20 73 76 29 29 0d 20 | 20 28 76 61 6c 75 65 73 |e sv)). | (values|
|00000d60| 20 23 40 28 30 20 30 29 | 20 23 40 28 30 20 30 29 | #@(0 0)| #@(0 0)|
|00000d70| 29 29 0d 0d 28 64 65 66 | 6d 65 74 68 6f 64 20 67 |))..(def|method g|
|00000d80| 72 61 70 68 69 63 2d 63 | 6f 72 6e 65 72 73 20 28 |raphic-c|orners (|
|00000d90| 28 73 76 20 67 72 61 70 | 68 69 63 2d 72 73 72 63 |(sv grap|hic-rsrc|
|00000da0| 2d 73 76 6d 29 29 0d 20 | 20 28 6d 75 6c 74 69 70 |-svm)). | (multip|
|00000db0| 6c 65 2d 76 61 6c 75 65 | 2d 62 69 6e 64 20 28 74 |le-value|-bind (t|
|00000dc0| 6f 70 4c 65 66 74 20 62 | 6f 74 52 69 67 68 74 29 |opLeft b|otRight)|
|00000dd0| 20 28 66 6f 63 75 73 65 | 64 2d 63 6f 72 6e 65 72 | (focuse|d-corner|
|00000de0| 73 20 73 76 29 0d 20 20 | 20 20 28 6d 75 6c 74 69 |s sv). | (multi|
|00000df0| 70 6c 65 2d 76 61 6c 75 | 65 2d 62 69 6e 64 20 28 |ple-valu|e-bind (|
|00000e00| 74 6c 2d 6d 61 72 67 69 | 6e 20 62 72 2d 6d 61 72 |tl-margi|n br-mar|
|00000e10| 67 69 6e 29 20 28 67 72 | 61 70 68 69 63 2d 6d 61 |gin) (gr|aphic-ma|
|00000e20| 72 67 69 6e 73 20 73 76 | 29 0d 20 20 20 20 20 20 |rgins sv|). |
|00000e30| 28 76 61 6c 75 65 73 20 | 28 61 64 64 2d 70 6f 69 |(values |(add-poi|
|00000e40| 6e 74 73 20 74 6f 70 4c | 65 66 74 20 74 6c 2d 6d |nts topL|eft tl-m|
|00000e50| 61 72 67 69 6e 29 20 28 | 73 75 62 74 72 61 63 74 |argin) (|subtract|
|00000e60| 2d 70 6f 69 6e 74 73 20 | 62 6f 74 52 69 67 68 74 |-points |botRight|
|00000e70| 20 62 72 2d 6d 61 72 67 | 69 6e 29 29 29 29 29 0d | br-marg|in))))).|
|00000e80| 0d 28 64 65 66 6d 65 74 | 68 6f 64 20 76 69 65 77 |.(defmet|hod view|
|00000e90| 2d 64 65 66 61 75 6c 74 | 2d 73 69 7a 65 20 28 28 |-default|-size ((|
|00000ea0| 73 76 20 67 72 61 70 68 | 69 63 2d 72 73 72 63 2d |sv graph|ic-rsrc-|
|00000eb0| 73 76 6d 29 29 0d 20 20 | 28 61 64 64 2d 70 6f 69 |svm)). |(add-poi|
|00000ec0| 6e 74 73 20 28 6d 75 6c | 74 69 70 6c 65 2d 76 61 |nts (mul|tiple-va|
|00000ed0| 6c 75 65 2d 63 61 6c 6c | 20 23 27 61 64 64 2d 70 |lue-call| #'add-p|
|00000ee0| 6f 69 6e 74 73 20 28 67 | 72 61 70 68 69 63 2d 6d |oints (g|raphic-m|
|00000ef0| 61 72 67 69 6e 73 20 73 | 76 29 29 0d 20 20 20 20 |argins s|v)). |
|00000f00| 20 20 20 20 20 20 20 20 | 20 20 28 73 6c 6f 74 2d | | (slot-|
|00000f10| 76 61 6c 75 65 20 73 76 | 20 27 67 72 61 70 68 69 |value sv| 'graphi|
|00000f20| 63 2d 64 65 66 61 75 6c | 74 2d 73 69 7a 65 29 29 |c-defaul|t-size))|
|00000f30| 29 0d 0d 28 64 65 66 6d | 65 74 68 6f 64 20 73 63 |)..(defm|ethod sc|
|00000f40| 61 6c 65 2d 76 69 65 77 | 2d 73 69 7a 65 20 28 28 |ale-view|-size ((|
|00000f50| 73 76 20 67 72 61 70 68 | 69 63 2d 72 73 72 63 2d |sv graph|ic-rsrc-|
|00000f60| 73 76 6d 29 29 0d 20 20 | 28 77 68 65 6e 20 28 73 |svm)). |(when (s|
|00000f70| 6c 6f 74 2d 62 6f 75 6e | 64 70 20 73 76 20 27 72 |lot-boun|dp sv 'r|
|00000f80| 73 72 63 2d 68 61 6e 64 | 6c 65 29 0d 20 20 20 20 |src-hand|le). |
|00000f90| 28 77 69 74 68 2d 73 6c | 6f 74 73 20 28 72 73 72 |(with-sl|ots (rsr|
|00000fa0| 63 2d 68 61 6e 64 6c 65 | 29 20 73 76 0d 20 20 20 |c-handle|) sv. |
|00000fb0| 20 20 20 28 6c 65 74 20 | 28 28 6d 61 72 67 69 6e | (let |((margin|
|00000fc0| 2d 73 69 7a 65 20 28 6d | 75 6c 74 69 70 6c 65 2d |-size (m|ultiple-|
|00000fd0| 76 61 6c 75 65 2d 63 61 | 6c 6c 20 23 27 61 64 64 |value-ca|ll #'add|
|00000fe0| 2d 70 6f 69 6e 74 73 20 | 28 67 72 61 70 68 69 63 |-points |(graphic|
|00000ff0| 2d 6d 61 72 67 69 6e 73 | 20 73 76 29 29 29 29 0d |-margins| sv)))).|
|00001000| 20 20 20 20 20 20 20 20 | 28 73 65 74 2d 76 69 65 | |(set-vie|
|00001010| 77 2d 73 69 7a 65 20 73 | 76 20 28 61 64 64 2d 70 |w-size s|v (add-p|
|00001020| 6f 69 6e 74 73 20 28 67 | 72 61 70 68 69 63 2d 73 |oints (g|raphic-s|
|00001030| 69 7a 65 20 73 76 20 72 | 73 72 63 2d 68 61 6e 64 |ize sv r|src-hand|
|00001040| 6c 65 29 20 6d 61 72 67 | 69 6e 2d 73 69 7a 65 29 |le) marg|in-size)|
|00001050| 29 29 29 29 29 0d 0d 28 | 64 65 66 6d 65 74 68 6f |)))))..(|defmetho|
|00001060| 64 20 73 65 74 2d 76 69 | 65 77 2d 73 69 7a 65 20 |d set-vi|ew-size |
|00001070| 3a 62 65 66 6f 72 65 20 | 28 28 73 76 20 67 72 61 |:before |((sv gra|
|00001080| 70 68 69 63 2d 72 73 72 | 63 2d 73 76 6d 29 20 68 |phic-rsr|c-svm) h|
|00001090| 20 26 6f 70 74 69 6f 6e | 61 6c 20 76 29 0d 20 20 | &option|al v). |
|000010a0| 28 64 65 63 6c 61 72 65 | 20 28 69 67 6e 6f 72 65 |(declare| (ignore|
|000010b0| 20 68 20 76 29 29 0d 20 | 20 28 65 72 61 73 65 2d | h v)). | (erase-|
|000010c0| 76 69 65 77 20 73 76 29 | 29 0d 0d 28 64 65 66 6d |view sv)|)..(defm|
|000010d0| 65 74 68 6f 64 20 72 73 | 72 63 2d 68 61 6e 64 6c |ethod rs|rc-handl|
|000010e0| 65 2d 69 6e 73 74 61 6c | 6c 20 3a 61 66 74 65 72 |e-instal|l :after|
|000010f0| 20 28 28 73 76 20 67 72 | 61 70 68 69 63 2d 72 73 | ((sv gr|aphic-rs|
|00001100| 72 63 2d 73 76 6d 29 29 | 0d 20 20 28 69 66 20 28 |rc-svm))|. (if (|
|00001110| 65 71 20 3a 61 64 6a 75 | 73 74 2d 76 69 65 77 2d |eq :adju|st-view-|
|00001120| 73 69 7a 65 20 28 73 6c | 6f 74 2d 76 61 6c 75 65 |size (sl|ot-value|
|00001130| 20 73 76 20 27 67 72 61 | 70 68 69 63 2d 73 63 61 | sv 'gra|phic-sca|
|00001140| 6c 69 6e 67 29 29 0d 20 | 20 20 20 28 73 63 61 6c |ling)). | (scal|
|00001150| 65 2d 76 69 65 77 2d 73 | 69 7a 65 20 73 76 29 0d |e-view-s|ize sv).|
|00001160| 20 20 20 20 28 69 6e 76 | 61 6c 69 64 61 74 65 2d | (inv|alidate-|
|00001170| 76 69 65 77 20 73 76 20 | 74 29 29 29 0d 0d 28 64 |view sv |t)))..(d|
|00001180| 65 66 6d 65 74 68 6f 64 | 20 73 65 74 2d 76 69 65 |efmethod| set-vie|
|00001190| 77 2d 72 65 73 6f 75 72 | 63 65 20 3a 61 66 74 65 |w-resour|ce :afte|
|000011a0| 72 20 28 28 73 76 20 67 | 72 61 70 68 69 63 2d 72 |r ((sv g|raphic-r|
|000011b0| 73 72 63 2d 73 76 6d 29 | 20 20 26 6b 65 79 20 72 |src-svm)| &key r|
|000011c0| 73 72 63 2d 74 79 70 65 | 20 72 73 72 63 2d 69 64 |src-type| rsrc-id|
|000011d0| 20 72 73 72 63 2d 6e 61 | 6d 65 20 72 73 72 63 2d | rsrc-na|me rsrc-|
|000011e0| 68 61 6e 64 6c 65 29 0d | 20 20 28 64 65 63 6c 61 |handle).| (decla|
|000011f0| 72 65 20 28 69 67 6e 6f | 72 65 20 72 73 72 63 2d |re (igno|re rsrc-|
|00001200| 74 79 70 65 20 72 73 72 | 63 2d 69 64 20 72 73 72 |type rsr|c-id rsr|
|00001210| 63 2d 6e 61 6d 65 20 72 | 73 72 63 2d 68 61 6e 64 |c-name r|src-hand|
|00001220| 6c 65 29 29 0d 20 20 28 | 69 6e 76 61 6c 69 64 61 |le)). (|invalida|
|00001230| 74 65 2d 76 69 65 77 20 | 73 76 20 74 29 29 0d 0d |te-view |sv t))..|
|00001240| 0d 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |.;;;;;;;|;;;;;;;;|
|00001250| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001260| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001270| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001280| 3b 3b 3b 3b 3b 3b 3b 0d | 00 00 00 00 00 00 00 00 |;;;;;;;.|........|
|00001290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 01 00 00 00 01 5a | 00 00 00 5a 00 00 00 46 |.......Z|...Z...F|
|00001310| 74 2d 76 69 65 77 2d 72 | 65 73 6f 75 72 63 65 20 |t-view-r|esource |
|00001320| 3a 61 66 74 65 72 20 28 | 28 73 76 20 49 43 4f 4e |:after (|(sv ICON|
|00001330| 15 67 72 61 70 68 69 63 | 2d 72 73 72 63 2d 73 76 |.graphic|-rsrc-sv|
|00001340| 6d 2e 6c 69 73 70 02 00 | 00 00 54 45 58 54 43 43 |m.lisp..|..TEXTCC|
|00001350| 00 00 54 45 58 54 43 43 | 4c 32 40 00 00 00 00 00 |..TEXTCC|L2@.....|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 a4 de 8b 86 00 00 | 00 00 00 00 01 a0 70 65 |........|......pe|
|00001380| 20 72 73 72 63 2d 69 64 | 20 72 73 72 63 2d 6e 61 | rsrc-id| rsrc-na|
|00001390| 6d 65 20 72 73 72 63 2d | 68 61 6e 64 6c 65 29 29 |me rsrc-|handle))|
|000013a0| 0d 20 20 28 69 66 20 28 | 65 71 20 3a 76 69 65 77 |. (if (|eq :view|
|000013b0| 2d 74 6f 2d 49 43 4f 4e | 20 28 73 6c 6f 74 2d 76 |-to-ICON| (slot-v|
|000013c0| 61 6c 75 65 20 73 76 20 | 27 49 43 4f 4e 2d 73 63 |alue sv |'ICON-sc|
|000013d0| 61 6c 69 6e 67 29 29 0d | 20 20 20 20 28 73 63 61 |aling)).| (sca|
|000013e0| 6c 65 2d 76 69 65 77 2d | 74 6f 2d 49 43 4f 4e 20 |le-view-|to-ICON |
|000013f0| 73 76 29 0d 20 20 20 20 | 28 69 6e 76 61 6c 69 64 |sv). |(invalid|
|00001400| 00 00 00 0a 00 01 00 16 | 0a 00 01 00 00 00 00 00 |........|........|
|00001410| 00 48 00 0a 43 6f 75 72 | 69 65 72 00 00 00 00 00 |.H..Cour|ier.....|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 00 00 00 00 00 06 00 08 | 00 72 00 8e 03 57 02 c8 |........|.r...W..|
|00001440| 00 72 00 8e 03 57 02 c8 | 00 00 00 00 00 00 0d ff |.r...W..|........|
|00001450| 00 00 0d ff 00 00 07 97 | 01 00 00 00 01 00 00 00 |........|........|
|00001460| 01 5a 00 00 00 5a 00 00 | 00 46 00 37 d3 2c 07 5a |.Z...Z..|.F.7.,.Z|
|00001470| 00 00 00 1c 00 46 00 01 | 46 52 45 44 00 00 00 12 |.....F..|FRED....|
|00001480| 4d 50 53 52 00 00 00 1e | 00 02 ff ff 00 00 00 00 |MPSR....|........|
|00001490| 00 00 00 00 03 ed ff ff | 00 00 00 0e 00 37 f3 1c |........|.....7..|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+